<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib uri="/page" prefix="public"%>
<public:pageControl classPath="app.portalbs.basic.role.menu.MenuInfo"/>
<script>

	function menuDetailGrid_authBtn_onclick(grid,page){
		
		var mode_id = page.find("menuModelGrid").getFieldValue("MODE_ID");
		var view_idx = grid.getFieldValue("VIEW_IDX");
		grid.getCheckDataSet();
       	if(grid.getRecordCount()<1){
           alert("至少选择一个菜单资源信息！");
           return;
       	}
       	
       	grid.dataSet.switchMessage("detailAuth");
		
		page.find("menuModelGrid").refresh();

	}
	
	function menuModelGrid_authBtn_onclick(grid,page){
		
		grid.getCheckDataSet();
       	if(grid.getRecordCount()<1){
           alert("至少选择一个模块信息！");
           return;
       	}
       	
		grid.dataSet.switchMessage("detailModelAuth");
		
		page.find("menuModelGrid").refresh();
	}
</script>
